package com.weiaibenpao.demo.chislim.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/8/18.
 */

public class Moment implements Parcelable {
    /**
     * userImage : http://q.qlogo.cn/qqapp/1105642894/3E8FB3829A31EA07488DDBE5DC8AE0E2/100
     * userName : 艾希控
     * userDelete : NO    //表示可否删除
     * number : 0         //0表示未赞 1表示已赞
     * id : 466           //Moment 自身id
     * userId : 39
     * themeTitleStr :
     * humorContent : 222222
     * humorImgUrlSmall :
     * humorImgUrl :
     * humorVideoUrl :
     * humorVideoImgUrl :
     * likeNum : 0
     * humorpalce :
     * createTime : 1513734566298
     * comentNum : 0
     * width : 0
     * height : 0
     */

    private String userImage;
    private String userName;
    private String userDelete;
    private int number;
    private int id;
    private int userId;
    private String themeTitleStr;
    private String humorContent;
    private String humorImgUrlSmall;
    private String humorImgUrl;
    private String humorVideoUrl;
    private String humorVideoImgUrl;
    private int likeNum;
    private String humorpalce;
    private long createTime;
    private int comentNum;
    private int width;
    private int height;

    protected Moment(Parcel in) {
        userImage = in.readString();
        userName = in.readString();
        userDelete = in.readString();
        number = in.readInt();
        id = in.readInt();
        userId = in.readInt();
        themeTitleStr = in.readString();
        humorContent = in.readString();
        humorImgUrlSmall = in.readString();
        humorImgUrl = in.readString();
        humorVideoUrl = in.readString();
        humorVideoImgUrl = in.readString();
        likeNum = in.readInt();
        humorpalce = in.readString();
        createTime = in.readLong();
        comentNum = in.readInt();
        width = in.readInt();
        height = in.readInt();
    }

    public static final Creator<Moment> CREATOR = new Creator<Moment>() {
        @Override
        public Moment createFromParcel(Parcel in) {
            return new Moment(in);
        }

        @Override
        public Moment[] newArray(int size) {
            return new Moment[size];
        }
    };

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserDelete() {
        return userDelete;
    }

    public void setUserDelete(String userDelete) {
        this.userDelete = userDelete;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getThemeTitleStr() {
        return themeTitleStr;
    }

    public void setThemeTitleStr(String themeTitleStr) {
        this.themeTitleStr = themeTitleStr;
    }

    public String getHumorContent() {
        return humorContent;
    }

    public void setHumorContent(String humorContent) {
        this.humorContent = humorContent;
    }

    public String getHumorImgUrlSmall() {
        return humorImgUrlSmall;
    }

    public void setHumorImgUrlSmall(String humorImgUrlSmall) {
        this.humorImgUrlSmall = humorImgUrlSmall;
    }

    public String getHumorImgUrl() {
        return humorImgUrl;
    }

    public void setHumorImgUrl(String humorImgUrl) {
        this.humorImgUrl = humorImgUrl;
    }

    public String getHumorVideoUrl() {
        return humorVideoUrl;
    }

    public void setHumorVideoUrl(String humorVideoUrl) {
        this.humorVideoUrl = humorVideoUrl;
    }

    public String getHumorVideoImgUrl() {
        return humorVideoImgUrl;
    }

    public void setHumorVideoImgUrl(String humorVideoImgUrl) {
        this.humorVideoImgUrl = humorVideoImgUrl;
    }

    public int getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(int likeNum) {
        this.likeNum = likeNum;
    }

    public String getHumorpalce() {
        return humorpalce;
    }

    public void setHumorpalce(String humorpalce) {
        this.humorpalce = humorpalce;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getComentNum() {
        return comentNum;
    }

    public void setComentNum(int comentNum) {
        this.comentNum = comentNum;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userImage);
        dest.writeString(userName);
        dest.writeString(userDelete);
        dest.writeInt(number);
        dest.writeInt(id);
        dest.writeInt(userId);
        dest.writeString(themeTitleStr);
        dest.writeString(humorContent);
        dest.writeString(humorImgUrlSmall);
        dest.writeString(humorImgUrl);
        dest.writeString(humorVideoUrl);
        dest.writeString(humorVideoImgUrl);
        dest.writeInt(likeNum);
        dest.writeString(humorpalce);
        dest.writeLong(createTime);
        dest.writeInt(comentNum);
        dest.writeInt(width);
        dest.writeInt(height);
    }

}
